{layout name="layout" /}
<!-- Main content -->
    <div class="callout callout-info">
        <h4> 系统通知!</h4>
        <p>欢迎使用由三世网络主导开发的ingeCMF系统。</p>
    </div>
    <!-- Info boxes -->
    <div class="row">
        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-aqua"><i class="fa fa-map-marker"></i></span>
                <div class="info-box-content">
                    <span class="info-box-text">当前程序版本</span>
                    <span class="info-box-number">{:sys_config_get('inge_version')}</span>
                </div>
                <!-- /.info-box-content -->
            </div>
            <!-- /.info-box -->
        </div>
        <!-- /.col -->
        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-red"><i class="fa fa-cloud-download"></i></span>
                <div class="info-box-content">
                    <span class="info-box-text">程序累计下载量</span>
                    <span class="info-box-number">1</span>
                </div>
                <!-- /.info-box-content -->
            </div>
            <!-- /.info-box -->
        </div>
        <!-- /.col -->
        <!-- fix for small devices only -->
        <div class="clearfix visible-sm-block"></div>
        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-green"><i class="fa fa-list"></i></span>
                <div class="info-box-content">
                    <span class="info-box-text">模型数量</span>
                    <span class="info-box-number">{$posts_count}</span>
                </div>
                <!-- /.info-box-content -->
            </div>
            <!-- /.info-box -->
        </div>
        <!-- /.col -->
        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
                <div class="info-box-content">
                    <span class="info-box-text">会员数量</span>
                    <span class="info-box-number">{$member_count}</span>
                </div>
                <!-- /.info-box-content -->
            </div>
            <!-- /.info-box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->

    <!-- /.row -->
    <!-- Main row -->
    <div class="row">
        <!-- Left col -->
        <div class="col-md-12">
            <!-- TABLE: LATEST ORDERS -->
            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title">操作日志</h3>
                    <div class="box-tools pull-right">
                        <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                        </button>
                        <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                    </div>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <div class="table-responsive">
                        <table class="table no-margin">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>模块</th>
                                    <th>请求类型</th>
                                    <th>操作地址</th>
                                    <th>操作时间</th>
                                    <th>用户</th>
                                    <th>系统/浏览器</th>
                                </tr>
                            </thead>
                            <tbody>
                            {volist name="log" id="vo"}
                                <tr class="trdetail">
                                    <td>{$vo.log_id}</td>
                                    <td>{$vo.log_m}</td>
                                    <td>
                                        <div class="sparkbar" data-color="#00a65a" data-height="20">{$vo.log_type}</div>
                                    </td>
                                    <th>{$vo.log_value}</th>
                                    <td>{$vo.log_time}</td>
                                    <td>{:get_username_byid($vo['log_uid'])}</td>
                                    <td>{$vo.log_os} / {$vo.log_browser}</td>
                                </tr>
                                <tr style="display: none;" >
                                    <td colspan="8" class="trdetail-td">
                                    <div class="row">
                                        <label class="form-label col-xs-3 text-right">用户：</label>
                                        <div class="formControls col-xs-8">
                                             {:get_username_byid($vo['log_uid'])}（ID：{$vo.log_uid}）
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="form-label col-xs-3 text-right">操作IP：</label>
                                        <div class="formControls col-xs-8">
                                            {$vo.log_ip}                                       </div>
                                    </div>
                                    <div class="row">
                                        <label class="form-label col-xs-3 text-right">操作数据：</label>
                                        <div class="formControls col-xs-8">
                                            <textarea name="" readonly="readonly" cols="" rows="3" class="col-xs-12" id="form-field-9" maxlength=""><?php
                                                $data = json_decode($vo['log_body'],true);
                                                echo json_encode($data['body']);
                                            ?></textarea>
                                        </div>
                                    </div>
                                </td>
                                </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                     {$log->render()}
                    <!-- /.table-responsive -->
                </div>

                <!-- /.box-body -->
                <!-- <div class="box-footer clearfix">
                    <a href="javascript:void(0)" class="btn btn-sm btn-info btn-flat pull-left">Place New Order</a>
                    <a href="javascript:void(0)" class="btn btn-sm btn-default btn-flat pull-right">查看更多消息</a>
                </div> -->
                <!-- /.box-footer -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->

        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
{include file="public/base" /}
{include file="public/footer" /}
</body>
</html>
